import useCookies from '@/utils/jsCookies'
import useStorage from '@/utils/useStorage'
const TokenKey = 'Admin-Token'

export function getToken() {
  useCookies.get(TokenKey)
  return useStorage.get(TokenKey)
}

export function setToken(token) {
  useCookies.set(TokenKey, token, 7)
  return useStorage.set(TokenKey, token)
}

export function removeToken() {
  useCookies.remove(TokenKey)
  return useStorage.remove(TokenKey)
}
